package com.wm.homework02;

public class Test {
    public static void main(String[] args) {
        Person wang = new Person();
        Telephone tel = new Telephone();
        Dvd dvd = new Dvd();
        Camera photo = new Camera();
        Mobile mobile = new Mobile();
        tel.dailup();
        dvd.play();
        photo.takePhoto();
        mobile.dailup();
        mobile.play();
        mobile.takePhoto();
    }

}
